﻿// GDRoundImageView.h
//		
//
//

#ifndef __NIUWAN_ROUNDIMAGEVIEW_H__
#define __NIUWAN_ROUNDIMAGEVIEW_H__


#include "CrossApp.h"
#include "CrossAppExt.h"
#include "../util/GDHttpUtil.h"
#include "../CommonHttpManager.h"

USING_NS_CC;
USING_NS_CC_EXT;


class GDRoundImageView : public CAView
{
public:
	GDRoundImageView();

	static GDRoundImageView* createWithFrame(const CCRect& frame);
	static GDRoundImageView* createWithCenter(const CCRect& rect);

	virtual bool init();

	void setImage(CAImage *pImage);
	void setImageUrl(const string &url);
	void setBlendImage(CAImage *pImage);
protected:
	virtual void setContentSize(const CCSize & size);
	virtual ~GDRoundImageView();

protected:
	CommonUrlImageView			*m_pImageView;
	CAImageView					*m_pBlendView;
	CAClippingView				*m_pClippingView;
	CADrawView					*m_pStencilView;
};

#endif // __NIUWAN_TEXTFIELD_READONLY_H__
